angular.module('tribalc').controller('ApproveDetailController', [
    '$rootScope' ,'$scope', 'Api', '$state', '$stateParams' ,
    function ($rootScope ,$scope, Api, $state, $stateParams, CompanyModel) {

    $rootScope.companyInfo = {};

    var companyID = $stateParams.companyId;
    getCompanyInfo(companyID);

        function getCompanyInfo(companyID) {
            Api.getCompanyDetail(companyID,function (result) {
                    $rootScope.companyInfo = result.data;
                });
        };


    }]);